package com.zy.cat.entity.dtk;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("大淘客商品各大榜单详细信息实体类")
public class GoodsRankList implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="榜单名次",example="0")
	private int ranking;
	
	@ApiModelProperty(value="商品ID",example="10010")
	private String goodsId;

	@JsonIgnore
	@ApiModelProperty(value="大淘客商品ID",example="10010")
	private long id;

	@JsonIgnore
	@ApiModelProperty(value="商品在大淘客的分类id",example="1")
	private String cid;

	@ApiModelProperty(value="淘宝标题",example="西维里男士睡衣夏季韩版真丝短")
	private String title;

	@ApiModelProperty(value="大淘客短标题",example="夏季睡衣男冰丝短袖丝绸家居服套装")
	private String dtitle;

	@ApiModelProperty(value="商品原价",example="23.9")
	private double originalPrice;

	@ApiModelProperty(value="券后价",example="13.9")
	private double actualPrice;

	@ApiModelProperty(value="店铺类型，1-天猫，0-淘宝",example="0")
	private long shopType;

	@ApiModelProperty(value="30天销量",example="10")
	private long monthSales;

	@ApiModelProperty(value="2小时销量",example="10")
	private long twoHoursSales;

	@ApiModelProperty(value="当日销量",example="10")
	private long dailySales;

	@JsonIgnore
	@ApiModelProperty(value="佣金类型，0-通用，1-定向，2-高佣，3-营销计划",example="0")
	private long commissionType;

	@ApiModelProperty(value="商品推广文案",example="宽松舒适，难以磨损典，雅而优美，倍感丝滑，质感优越，庄严而心仪，简约设计，色调清新脱俗，适合各种场合")
	private String desc;

	@JsonIgnore
	@ApiModelProperty(value="领券量",example="10")
	private long couponReceiveNum;

	@JsonIgnore
	@ApiModelProperty(value="券总量",example="10")
	private long couponTotalNum;
	
	@JsonIgnore
	@ApiModelProperty(value="优惠券链接",example="https://uland.")
	private String couponLink;

	@JsonIgnore
	@ApiModelProperty(value="优惠券结束时间",example="2019-09-11 11:11:11")
	private String couponEndTime;

	@JsonIgnore
	@ApiModelProperty(value="优惠券开始时间",example="2019-09-13 11:11:11")
	private String couponStartTime;

	@ApiModelProperty(value="优惠券金额",example="10")
	private double couponPrice;

	@ApiModelProperty(value="优惠券使用条件",example="38")
	private String couponConditions;

	@JsonIgnore
	@ApiModelProperty(value="活动类型，1-无活动，2-淘抢购，3-聚划算",example="0")
	private long activityType;

	@JsonIgnore
	@ApiModelProperty(value="商品上架时间",example="2019-09-13 11:11:11")
	private String createTime;
	
	@ApiModelProperty(value="商品主图链接",example="https://uland.")
	private String mainPic;

	@JsonIgnore
	@ApiModelProperty(value="佣金比例",example="30")
	private double commissionRate;

	@JsonIgnore
	@ApiModelProperty(value="热推值",example="10")
	private long hotPush;


	@JsonIgnore
	@ApiModelProperty(value="插入时间",example="2019-09-13 11:11:11")
	private String itime;

	@JsonIgnore
	@ApiModelProperty(value="最后更新时间",example="2019-09-13 11:11:11")
	private String ltime;

	@ApiModelProperty(value="商品详情图",example="https://detail.")
	private String imgs;

	@JsonIgnore
	@ApiModelProperty(value="放单人名称",example="阿甘团队")
	private String guideName;

	@JsonIgnore
	@ApiModelProperty(value="是否新上榜商品（12小时内入榜的商品） 0.否1.是",example="0")
	private int newRankingGoods;

	@JsonIgnore
	@ApiModelProperty(value="榜单类型:1.实时榜 2.全天榜 3.热推榜（热推榜分类无效）4.复购榜",example="0")
	private int rankType;

	@ApiModelProperty(value="返利信息",example="0")
	private long fcode;
	
    @JsonIgnore
	@ApiModelProperty(value="不同账号的佣金比例，小数",example="0.53")
	private double  rate;
	
    @JsonIgnore
	@ApiModelProperty(value="榜单类型(1.实时榜、 2.全天榜、 3.热推榜（热推榜一级类目[cat]无效）、4.复购榜)",example="0")
	private int rtype;

	/**
	 * API查询专用
	 * @param cid
	 * @param utype
	 * @param rtype
	 */
	public GoodsRankList(String cid,  double rate, int rtype) {
		super();
		this.cid = cid;
		this.rate = rate;
		this.rtype = rtype;
	}
}
